const {search} = require('../model/web.model')

class WebService {
  // 查询类型
  async get_type() {
    const sql = 'select a.sort_id, b.type_name from b_article a RIGHT JOIN b_type b on a.sort_id = b.id where a.status = 1 GROUP BY b.id;'
    const res = await search(sql)
    return res
  }
}

module.exports =  new WebService()